import inspect

from config.config import font_cfg, base_cfg
from config.effects import get_effects
from text_renderer.corpus import *
from text_renderer.effect import Effects, OneOf
from text_renderer.layout import ExtraTextLineLayout


def rand_data():
    effects = get_effects()
    return base_cfg(
        inspect.currentframe().f_code.co_name,
        layout=ExtraTextLineLayout(),
        gray=True,
        corpus=[RandCorpus(
            RandCorpusCfg(chars_file=None, auto_load_chars=False, length=(10, 15), **font_cfg),
        )],
        corpus_effects=Effects(OneOf(effects)),
        # corpus_effects=NoEffects(),
    )


# fmt: off
# The configuration file must have a configs variable
configs = [
    rand_data(),
]
# fmt: on
